package day1221;

import java.util.Scanner;

public class Test2 {
    public static void main(String[] args) {
        //1.定义变量赋值：文件名.数值;
        Week  w  =   Week.Sunday;
        //2. byte short int  char  String  枚举
        switch(w){
            case MONDAY:  System.out.println("星期："+1);break;    //类似于 if
            case Tuesday:  System.out.println("星期："+2);break;       //类似于else if
            case Wednesday:  System.out.println("星期："+3);break;       //类似于else if
            case Thursday:  System.out.println("星期："+4);break;       //类似于else if
            case Friday:  System.out.println("星期："+5);break;       //类似于else if
            case Saturday:  System.out.println("星期："+6);break;       //类似于else if
            case Sunday:  System.out.println("星期天"); break;     //类似于else if
            default: System.out.println("数据超范围"); break;          //类似于else
        }
    }
}
